#ifndef __IIC_BUS_H__
#define __IIC_BUS_H__


#include <Arduino.h>
#include <Wire.h>

/*函数声明*/
#ifdef __cplusplus
extern "C" {
#endif

void IIC_Init(void);//IIC总线初始化
uint32_t drv_i2c_getclock(void);
void drv_i2c_setclock(uint32_t clock);
bool IIC_Write(uint8_t addr, uint8_t *data, uint16_t len);//IIC总线写数据
bool drv_i2c_read(uint8_t addr, uint8_t *data, uint16_t len);

#ifdef __cplusplus
}
#endif

#endif
